package com.ken.apollo.commons.result;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200, "成功"),
    FAIL(500, "失败"),
    UNAUTHORIZED(401, "未认证"),
    NOT_FOUND(404, "接口不存在"),
    FORBIDDEN(403, "没有权限"),
    PARAM_ERROR(1000, "参数错误"),
    USER_NOT_EXIST(1001, "用户不存在"),
    USER_HAS_EXIST(1002, "用户已存在"),
    USER_PASSWORD_ERROR(1003, "用户密码错误");

    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
